namespace IoTEdge.Grpc.Server.AMR
{
    public class Program
    {
        public static void Main(string[] args)
        {
            IHost host = Host.CreateDefaultBuilder(args)
               .UseWindowsService((options) =>
               {
                   options.ServiceName = "IoTEdgePlugin";
               })
                .ConfigureServices(services =>
                {
                    services.AddHostedService<BackgroundAmrCollectPlugin>();
                    services.AddHostedService<BackgroundABBCollectPlugin>();
                    services.AddHostedService<BackgroundAmrExCollectPlugin>();
                    services.AddHostedService<BackgroundMQTTCollectPlugin>();
                })
                .Build();
            host.Run();
        }
    }
}